import hyRequest from "@/service";

/**
 * 用户的网路请求
 */
export function postUsersList() {
  return hyRequest.post({
    url: '/users/list',
    data: {
      offser: 0,
      size: 10
    }
  })
}

export function newUserData(userInfo: any) {
  return hyRequest.post({
    url: '/users',
    data: userInfo
  })
}

export function postPageListData(){
  return hyRequest.post({
    url: '/department/list',
    data: {
      offset: 0,
      size: 10
    }
  })
}
